/**
 *  学习目标：
 */
import React from 'react'

export default class App extends React.Component {
  state = {
    number: 0,
    newNumber: -1,
  }

  componentDidMount() {
    this.setState({ newNumber: this.state.number }, () => {
      this.setState({ newNumber: 2 }, () => {
        console.log(this.state.number === this.state.newNumber)
      })
    })
  }

  render() {
    return (
      <>
        <h1>知识点标题</h1>
      </>
    )
  }
}
